package com.huonan.service.orderservice.service;

import com.huonan.service.orderservice.domain.Item;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author huonan
 * @date 2020/2/27 16:31
 * @desc 微服务调用 里面集成了RestTemplate,内部实现里负载
 */
@FeignClient(value = "hello")
public interface IOrderService {


    /**
     * @Description 服务方法//TODO
     * @param id
     * @return service.orderservice.domain.Item
     **/
    @GetMapping("/item/{id}")
    Item queryItemById(@PathVariable("id") int id);
}
